import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    {
      path: '/',
      name: '敏感词过滤',
      meta:{
        title:"敏感词过滤"
      },
      component: () => import('../views/filterWords/filterWords')
    },
  ],
  mode: 'history',
})

router.afterEach((to, from) => {
  document.title = to.meta.title //在全局后置守卫中获取路由元信息设置title
})


export default router
